<script setup>
import { ref } from 'vue';
import Life from './components/Life.vue';
import LifeTwo from './components/LifeTwo.vue';
const show =ref(true)
</script>

<template>
  
  <LifeTwo v-if="show"></LifeTwo>
  <hr>
  <!-- <Life v-if="show"></Life> -->
  <button @click="show=!show">销毁组件</button>
  
</template>

<style scoped>

</style>
